home *** CD-ROM | disk | FTP | other *** search
/ Directorty Opus 5 - Magellan 2 / Opus 5 - Magellan 2.iso / DOpus_SDK_5.5 / include / dopus / diskio.h < prev    next >
C/C++ Source or Header  |  1996-08-28  |  1KB  |  36 lines

  1. #ifndef _DOPUS_DISKIO
  2. #define _DOPUS_DISKIO
  3.  
  4. /*****************************************************************************
  5.  
  6.  Disk I/O
  7.  
  8.  *****************************************************************************/
  9.  
  10. typedef struct
  11. {
  12.     struct MsgPort            *dh_Port;    // Message port
  13.     struct IOExtTD            *dh_IO;        // IO request
  14.     struct FileSysStartupMsg    *dh_Startup;    // Startup message
  15.     struct DosEnvec            *dh_Geo;    // Disk geometry
  16.     char                dh_Name[32];    // Disk name
  17.     char                dh_Device[32];    // Device name
  18.     struct InfoData            dh_Info;    // Disk information
  19.     unsigned long            dh_Result;    // dh_Info is valid
  20.     unsigned long            dh_Root;    // Root block
  21.     unsigned long            dh_BlockSize;    // Block size
  22.     struct DateStamp        dh_Stamp;    // not used
  23. } DiskHandle;
  24.  
  25. // Some third-party DOS types
  26. #define ID_AFS_PRO        0x41465301
  27. #define ID_AFS_USER        0x41465302
  28. #define ID_AFS_MULTI        0x6D754146
  29. #define ID_PFS_FLOPPY        0x50465300
  30. #define ID_PFS_HARD        0x50465301
  31.  
  32. DiskHandle *OpenDisk(char *,struct MsgPort *);
  33. void CloseDisk(DiskHandle *);
  34.  
  35. #endif
  36.